package com.example.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("user")  // 表名对应数据库中的表名
public class User {

    @TableId(value = "id", type = IdType.ASSIGN_ID)  // 主键自增
    private Long id;

    private String name;
    private String phoneNumber;
    private String password;
    private Integer role;
    private String introduction;
    private String createTime;
    private String updateTime;
}
